<table cellspacing=0 cellpadding=0 border=0 width=100%>
	<tr><td height=10></td></tr>
	<tr>
		<td class="proprietario_bacheca" colspan=2><?php echo $nome_utente ;?></td>
	</tr>
	<tr><td height=10></td></tr>
	<tr>
		<td class="titolo_pagina" colspan=2><span class="link_elenco_gallery">Gallery</span></td>
		
	</tr>
	<tr><td height=10></td></tr>
	<tr>
		<td colspan=2 height=1 bgcolor ="#dddddd"></td>
	</tr>
	<tr><td height=10></td></tr>

	<tr><td height=10 colspan=2 id="elenco_gallery"><?php 


$num_elenco = count($elenco_gallery);
if($num_elenco){
	
	
	// **** elenco gallery
	echo "<div class=\"elenco_cat\"><ul id=\"elenco_tutti\" >";
	foreach($elenco_gallery as $key => $value){

			$nome_file = $value['nome_file'];
			$stringa_html = "";
			if($nome_file) $stringa_html = "style=\"background-image : url('".base_url()."utenti_doc/{$value['id_utente']}/{$value['id_pagina']}/gallery/$nome_file')\"";
			echo "<li id=\"idcat_{$value['id']}\" attr=\"{$value['id_pagina']}/{$value['id']}\" style=\"height : 130px;\"><div class=\"div_cat_gallery\" $stringa_html></div>
			<a href=\"".base_url()."gallery_ext/dettaglio/{$value['id_pagina']}/{$value['id']}\" class=\"link_bacheca\">{$value['nome']}</a></li>";
		
	}
	echo "</ul></div>";
	echo "<div style=\"clear : both;\"></div><br/><br/>";
	

	
	
}
else echo "<span class=\"titolo_sezione\">$nome_utente non possiede gallery inserite</span> ";

?></td></tr>
	<tr><td height=10></td></tr>
	
</table>
<script language="javascript">
$(function() {	
	$("#accordion").accordion({ autoHeight: false , active: 0});
	
	$("#elenco_amici").fcbkcomplete({
      json_url: "<?php echo base_url();?>/amici/elenco_amici",
      cache: true,
      filter_case: true,
      filter_hide: true,
		firstselected: true,
      //onremove: "testme",
		//onselect: "testme",
      filter_selected: true,
      newel: true        
   });	
	
 	gallery_ext.init_elenco();
 	
	ricerca.init();
});
</script>
